﻿using System;

namespace DBUtil.Provider.Sqlite;

/// <summary>
/// sqlite 专用列配置
/// </summary>
[AttributeUsage(AttributeTargets.Property | AttributeTargets.Field, AllowMultiple = false)]
public class SqliteColumnAttribute : Attribute
{
    /// <summary>
    /// ctor
    /// </summary>
    public SqliteColumnAttribute() : base() { }
    /// <summary>
    /// ctor
    /// </summary>
    public SqliteColumnAttribute(string name)
    {
        Name = name;
    }
    /// <summary>
    /// 当使用 text 存储日期时, 日期的字符串格式<br />默认: "yyyy-MM-ddTHH:mm:ss.fffzzz", 如: "2020-01-01T01:02:03.123+08:00"
    /// </summary>
    public string TimeFormat { get; set; }

    public string Name { get; set; }
    public int Order { get; set; }
    public string TypeName { get; set; }
}
